from ddt import ddt,file_data
from Po.Page import Page
from Po.Page2 import Page2
from Po.Poge3 import Page3
from Po.Base import Base
from selenium.webdriver.common.by import By
from selenium import webdriver
import time
import unittest
from Po.Tools import send_email
# @ddt()
class TestCase(unittest.TestCase):
    # def setup_match(self):
    def setUp(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()
        self.driver.implicitly_wait(5)


    # def tearDown_match(self):
    def tearDown(self):
        time.sleep(5)
        self.driver.quit()

    # @file_data('data.yaml')
    def test_jiuxian_01(self):
        po=Page(self.driver)
        po.jiuxian_luoji1()

    def test_jiuxian_02(self):
        po2=Page2(self.driver)
        # dy1=self.driver.find_element(By.ID,'regOrLogin').text
        # print(dy1)
        po2.jiuxian_luoji2()

    def test_jiuxian_03(self):
        po3=Page3(self.driver)
        po3.jiuxian_luoji3()


if __name__ == '__main__':
    unittest.main()